package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.beans.Transient;
import java.util.Date;

/**
 * 小程序端用户对象 wc_sys_user
 *
 * @author ruoyi
 * @date 2020-01-20
 */
public class WcSysUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Integer id;

    /**
     * 微信用户OPENID
     */
    @Excel(name = "微信用户OPENID")
    private String openid;

    /**
     * 用户名
     */
    @Excel(name = "用户名")
    private String username;

    /**
     * 密码
     */
    @Excel(name = "密码")
    private String password;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String nickname;

    /**
     * 邀请码（未启用）
     */
    @Excel(name = "邀请码", readConverterExp = "未=启用")
    private String inviter;

    /**
     * 邀请码
     */
    @Excel(name = "邀请码")
    private String code;

    /**
     * 邀请码
     */
    @Excel(name = "邀请人姓名")
    private String yname;

    public String getShangji() {
        return shangji;
    }

    public void setShangji(String shangji) {
        this.shangji = shangji;
    }

    /**
     * 邀请人级别
     */
    @Excel(name = "邀请人级别")
    private String shangji;

    /**
     * 邀请日期（未启用）
     */
    @Excel(name = "邀请日期", readConverterExp = "未=启用")
    private Long invitertime;

    /**
     * 性别
     */
    @Excel(name = "性别")
    private Integer gender;

    /**
     * 微信头像
     */
    @Excel(name = "微信头像")
    private String avatarUrl;

    /**
     * 用户所属管理员
     */
    @Excel(name = "用户所属管理员")
    private String forsysuserId;

    /**
     * 用户申请时间
     */
    @Excel(name = "用户申请时间")
    private Date createTime;
    @Excel(name = "用户更新时间")
    private Date updateTime;
    @Excel(name = "真实姓名")
    private String realName;
    @Excel(name = "车友手机号")
    private String mobile;
    @Excel(name = "上级id")
    private Integer parentUserId;
    // 造假基数
    Integer factor;

    public String getYname() {
        return yname;
    }

    public void setYname(String yname) {
        this.yname = yname;
    }

    public Date getCreatetime() {
        return createTime;
    }

    public void setCreatetime(Date createtime) {
        this.createTime = createtime;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getOpenid() {
        return openid;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUsername() {
        return username;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getNickname() {
        return nickname;
    }

    public void setInviter(String inviter) {
        this.inviter = inviter;
    }

    public String getInviter() {
        return inviter;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setInvitertime(Long invitertime) {
        this.invitertime = invitertime;
    }

    public Long getInvitertime() {
        return invitertime;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Integer getGender() {
        return gender;
    }

    public void setAvatar(String avatar) {
        this.avatarUrl = avatar;
    }

    public String getAvatar() {
        return avatarUrl;
    }

    public void setForsysuserId(String forsysuserId) {
        this.forsysuserId = forsysuserId;
    }

    public String getForsysuserId() {
        return forsysuserId;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getParentUserId() {
        return parentUserId;
    }

    public void setParentUserId(Integer parentUserId) {
        this.parentUserId = parentUserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("openid", getOpenid())
                .append("username", getUsername())
                .append("password", getPassword())
                .append("nickname", getNickname())
                .append("inviter", getInviter())
                .append("code", getCode())
                .append("invitertime", getInvitertime())
                .append("createTime", getCreatetime())
                .append("gender", getGender())
                .append("avatarUrl", getAvatar())
                .append("forsysuserId", getForsysuserId())
                .append("yname",getYname())
                .append("updateTime",getUpdateTime())
                .append("realName",getRealName())
                .append("mobile",getMobile())
                .append("parentUserId",getParentUserId())
                .append("shangji",getShangji())
                .toString();
    }

    public Integer getFactor() {
        return factor;
    }

    public void setFactor(Integer factor) {
        this.factor = factor;
    }
}
